

#!/usr/bin/env python
# encoding: utf-8
'''
@author: Zhouin
@time: 2018/5/30 0030 下午 21:38
'''

print('-----------------------')
print('判断字符串长度是否为10:')
charset = '123123tgaeggqet3tqpoakepok'
if len(charset)==10:
    print("Yes")
elif len(charset)>=10:
    print("该字符串长度大于10")
elif len(charset)<=10:
    print("该字符串长度小于10")
a = int(input('请输入1~40之间的整数：'))
if a>=1 and a<10:
    print('该数字为1~10之间的数')
if a>=10 and a<20:
    print('该数字为10~20之间的数')
if a>=20 and a<30:
    print('该数字为20~30之间的数')
if a>=30 and a<=40:
    print('该数字为30~40之间的数')

print('----------------------------')

# list = [1,]
# i=2
# while True:
#     list.append(i)
#     i += 1
#     if i>100:
#         break
print([i for i in range(1,101)])
# for i in list:
#     if i%2==0:
#         print(i)
#     if i%2==1:
#         continue
print([i for i in range(1,101) if i%2==0])

m = 1
while True:
    m += 1
    if m%3 == 0:
        print(m)
    if m>100:
        break
